package com.sasis.model;
// Generated 2007-4-5 11:35:00 by Hibernate Tools 3.1.0.beta4



/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="SERVICE_SHEET"
 *     
 */

public class ServiceSheet extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
    private Integer requestId;
    private String recMan;
    private String sendMan;
    private String serverMan;
    private String restRoom;
    private String recPlan;


    // Constructors

    /** default constructor */
    public ServiceSheet() {
    }

    
    /** full constructor */
    public ServiceSheet(Integer requestId, String recMan, String sendMan, String serverMan, String restRoom, String recPlan) {
        this.requestId = requestId;
        this.recMan = recMan;
        this.sendMan = sendMan;
        this.serverMan = serverMan;
        this.restRoom = restRoom;
        this.recPlan = recPlan;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="REQUEST_ID"
     *             length="26"
     *         
     */

    public Integer getRequestId() {
        return this.requestId;
    }
    
    public void setRequestId(Integer requestId) {
        this.requestId = requestId;
    }
    /**       
     *      *            @hibernate.property
     *             column="REC_MAN"
     *             length="30"
     *         
     */

    public String getRecMan() {
        return this.recMan;
    }
    
    public void setRecMan(String recMan) {
        this.recMan = recMan;
    }
    /**       
     *      *            @hibernate.property
     *             column="SEND_MAN"
     *             length="30"
     *         
     */

    public String getSendMan() {
        return this.sendMan;
    }
    
    public void setSendMan(String sendMan) {
        this.sendMan = sendMan;
    }
    /**       
     *      *            @hibernate.property
     *             column="SERVER_MAN"
     *             length="30"
     *         
     */

    public String getServerMan() {
        return this.serverMan;
    }
    
    public void setServerMan(String serverMan) {
        this.serverMan = serverMan;
    }
    /**       
     *      *            @hibernate.property
     *             column="REST_ROOM"
     *             length="30"
     *         
     */

    public String getRestRoom() {
        return this.restRoom;
    }
    
    public void setRestRoom(String restRoom) {
        this.restRoom = restRoom;
    }
    /**       
     *      *            @hibernate.property
     *             column="REC_PLAN"
     *             length="150"
     *         
     */

    public String getRecPlan() {
        return this.recPlan;
    }
    
    public void setRecPlan(String recPlan) {
        this.recPlan = recPlan;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("requestId").append("='").append(getRequestId()).append("' ");			
      buffer.append("recMan").append("='").append(getRecMan()).append("' ");			
      buffer.append("sendMan").append("='").append(getSendMan()).append("' ");			
      buffer.append("serverMan").append("='").append(getServerMan()).append("' ");			
      buffer.append("restRoom").append("='").append(getRestRoom()).append("' ");			
      buffer.append("recPlan").append("='").append(getRecPlan()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof ServiceSheet) ) return false;
		 ServiceSheet castOther = ( ServiceSheet ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getRequestId()==castOther.getRequestId()) || ( this.getRequestId()!=null && castOther.getRequestId()!=null && this.getRequestId().equals(castOther.getRequestId()) ) )
 && ( (this.getRecMan()==castOther.getRecMan()) || ( this.getRecMan()!=null && castOther.getRecMan()!=null && this.getRecMan().equals(castOther.getRecMan()) ) )
 && ( (this.getSendMan()==castOther.getSendMan()) || ( this.getSendMan()!=null && castOther.getSendMan()!=null && this.getSendMan().equals(castOther.getSendMan()) ) )
 && ( (this.getServerMan()==castOther.getServerMan()) || ( this.getServerMan()!=null && castOther.getServerMan()!=null && this.getServerMan().equals(castOther.getServerMan()) ) )
 && ( (this.getRestRoom()==castOther.getRestRoom()) || ( this.getRestRoom()!=null && castOther.getRestRoom()!=null && this.getRestRoom().equals(castOther.getRestRoom()) ) )
 && ( (this.getRecPlan()==castOther.getRecPlan()) || ( this.getRecPlan()!=null && castOther.getRecPlan()!=null && this.getRecPlan().equals(castOther.getRecPlan()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getRequestId() == null ? 0 : this.getRequestId().hashCode() );
         result = 37 * result + ( getRecMan() == null ? 0 : this.getRecMan().hashCode() );
         result = 37 * result + ( getSendMan() == null ? 0 : this.getSendMan().hashCode() );
         result = 37 * result + ( getServerMan() == null ? 0 : this.getServerMan().hashCode() );
         result = 37 * result + ( getRestRoom() == null ? 0 : this.getRestRoom().hashCode() );
         result = 37 * result + ( getRecPlan() == null ? 0 : this.getRecPlan().hashCode() );
         return result;
   }   





}
